package com.ff.xyh.common.qo.post;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @Auther FF
 * @Date 2022年 10月 27日
 * @Time 02:07
 */

@Data
@Accessors(chain = true)
public class PostShopQuery {

    @ApiModelProperty(value = "当前页")
    private long currentPage;
    @ApiModelProperty(value = "页面大小")
    private long pageSize;

    @ApiModelProperty(value = "帖子id")
    private String id;

    @ApiModelProperty(value = "发布人id 查询指定用户发布的帖子")
    private String userId;

    @ApiModelProperty(value = "包含内容")
    private String contains;

    @ApiModelProperty(value = "指定平台")
    private Integer platformId;

    @ApiModelProperty(value = "单次最少*单价 < 最高价格")
    private Integer maxPrice;
    @ApiModelProperty(value = "单次最少*单价 > 最低价格")
    private Integer minPrice;

    @ApiModelProperty(value = "帖子状态")
    private Integer postStatus;

    @ApiModelProperty(value = "帖子审核状态")
    private Integer checkStatus;

    @ApiModelProperty(value = "有效期<最晚有效期")
    private Date latestEffective;

    @ApiModelProperty(value = "创建日期在此之后")
    private Date gmtCreatedAfter;

    @ApiModelProperty(value = "创建日期在此之前")
    private Date gmtCreatedBefore;

    // latestEffective为空时按修改时间 latestEffective不为空时按effective;
    @ApiModelProperty(value = "按修改时间 true:倒序DESC")
    private Boolean orderByModifiedTime;
    @ApiModelProperty(value = "按创建时间时间 true:倒序DESC")
    private Boolean orderByCreatedTime;

}
